package cn.itcast.com.linkedlist;

import java.util.Iterator;
import java.util.LinkedList;

public class demo {
    public static void main(String[] args) {
        LinkedList<String> deque = new LinkedList<String>();

        deque.addFirst("a");
        deque.addFirst("b");
        deque.addFirst("c");
        deque.addLast("d");
        deque.addLast("c");
        boolean c = deque.removeLastOccurrence("c");
        System.out.println(deque);



    }
}
